package com.joinway.framework.extension.image;

import java.util.HashMap;
import java.util.Map;

import com.joinway.framework.extension.image.coder.IImageCoder;
import com.joinway.framework.extension.image.coder.QRImageCoder;
import com.joinway.framework.extension.image.coder.type.ImageCode;

public final class ImageCoderFactory {

	private static final Map<ImageCode, IImageCoder> map = new HashMap<>();
	
	static{
		map.put(ImageCode.QuickResponseCode, new QRImageCoder());
	}
	
	public static IImageCoder getImageCoder(ImageCode code){
		return map.get(code);
	}
	
	private ImageCoderFactory(){}
	
}
